import Vue from "vue";
import App from "./App.vue";
import "./registerServiceWorker";
import router from "./router";
import store from "./store";
import './assets/font/iconfont.css';
import './assets/css/common.css';
import {clientHeight} from "./assets/js/common.js";
import "./assets/js/vant_component.js";
import "lib-flexible";//导入lib-flexible模块，该模块内置有媒体查询，可以设置在不同移动端屏幕之下，跟标签文字尺寸的动态计算

//导入AXIOS网络求情模块和Vue-axios模块
import axios from "axios";
import VueAxios from "vue-axios";
import vueAwesomeSwiper from "vue-awesome-swiper";
import "swiper/dist/css/swiper.min.css"

Vue.config.productionTip = false;
Vue.prototype.$height = clientHeight;
Vue.prototype.$url = "/api";
Vue.prototype.$appKey = "d04d8d9c3fa33db8";

//对AXIOS进行全局注册,注axios全局注册必须发生在根vue实例创建之前，并且注册成功之后axios回座位所有vue实例的属性进行调用，
Vue.use(VueAxios, axios);
Vue.use(vueAwesomeSwiper);
//该操作用来设置根Vue实例，该实例被挂载到public对应的index.html中的#app的div标签 
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
